<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理</title>

  <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
	  <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>



    <!-- ECharts -->
    <script src="js/plugins/echarts/echarts-all.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>


    <!-- ECharts demo data -->
    <script src="js/demo/echarts-demo.js"></script>
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet"> 	<div style="
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 40%;
    right: 40%;
">程序开发：@刘继鹏Beta</div>
	<!--
项目名称：在线简历填写+公众号简历状态实时推送查询系统
微信消息接口开发：@刘继鹏Beta
程序开发：@刘继鹏Beta
前端设计:@刘继鹏Beta
MYSQL：@刘继鹏Beta
开发日期：2017/02/13
	-->

	  <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>



    <!-- ECharts -->
    <script src="js/plugins/echarts/echarts-all.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>


    <!-- ECharts demo data -->
    <script src="js/demo/echarts-demo.js"></script>
    </head>
    <body>
    <?php
	error_reporting(0);
		session_start();
		if(time() - $_SESSION['time'] >1800){
		unset($_SESSION['username']);
unset($_SESSION['passcode']);
unset($_SESSION['userflag']);
		unset($_SESSION['time']);
		
	}
if(isset($_SESSION['username']))
{
?>
<?php include_once('wx_config.php'); ?>
  <?php 
  $result = mysql_query("SELECT * FROM users ");
            while($row = mysql_fetch_array($result)) 	{
	        $user=$row['username'];
				$password=$row['password'];
} 
  ?>
   <div class="col-sm-8">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>微信公众平台接入信息<small></small></h5>
                        <div class="ibox-tools">
                          
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form role="form" method="post" action="add.php?action=appid" class="form-inline">
                            <div class="form-group">
                                <label for="exampleInputEmail2" class="sr-only"></label>
                                AppID：<input type="text" value="<?php echo $appID; ?>" id="exampleInputEmail2" name="appid" class="form-control">
                            </div>
                            <input type="text" value="<?php echo $appID; ?>" id="exampleInputEmail2" name="oldappid" class="form-control" style="display: none">
                            <div class="form-group">
                                <label for="exampleInputPassword2" class="sr-only"></label>
                               Appsecret：<input type="text" value="<?php echo $appsecret; ?>" id="exampleInputPassword2" name="appsecret" class="form-control">
                            </div>
                            <input type="text" value="<?php echo $appsecret; ?>" id="exampleInputPassword2" name="oldappsecret" class="form-control" style="display: none">
                            <div class="checkbox m-l m-r-xs">
                                <label class="i-checks">
                                    <div class="icheckbox_square-green" style="position: relative;"><input type="checkbox" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div><i></i></label>
                            </div>
                            <button class="btn btn-white" type="submit">修 改</button>
                        </form>
                    </div>
                </div>
            </div>
            
               <div class="col-sm-8">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>系统账号管理</h5>
                        <div class="ibox-tools">
                          
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form role="form" method="post" action="add.php?action=user" class="form-inline">
                            <div class="form-group">
                                <label for="exampleInputEmail2" class="sr-only"></label>
                                账号：<input type="text" value="<?php echo $user; ?>" id="exampleInputEmail2" name="user" class="form-control">
                            </div>
                           
                            <div class="form-group">
                                <label for="exampleInputPassword2" class="sr-only"></label>
                              密码：<input type="text" value="" id="exampleInputPassword2" name="password" class="form-control">
                            </div>
                           
                            <div class="checkbox m-l m-r-xs">
                                <label class="i-checks">
                                    <div class="icheckbox_square-green" style="position: relative;"><input type="checkbox" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div><i></i></label>
                            </div>
                            <button class="btn btn-white" type="submit">修 改</button>
                        </form>
                    </div>
                </div>
            </div>
            
            
            
            <?php
			}else{
			    exit( ' <script>$(document).ready(function () { swal({title: 
	"抱歉，你还未登录哦！",
                    type: "error"
					
                }, function() {location.href="login.php";});
          
        });
    </script>');
			}
			?>
    </body>
    </html>
